package com.xixi.model;


//分别封装type和user
public class userMessage implements java.io.Serializable{
//private static final long serialVersionUID=-
     private String type;  //消息的类型代表具体的业务
     private User user;   //消息的具体内容

    public userMessage() {
    }

    public userMessage(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "userMessage{" +
                "type='" + type + '\'' +
                ", user=" + user +
                '}';
    }
}
